import request from '@/utils/request'

export function statisticsManager(page, size, data) {
  return request({
    url: `/api/adminInfo?page=${page}&size=${size}`,
    method: 'get',
    params: data
  })
}

export function saveManager(data) {
  return request({
    url: `/api/adminInfo/save`,
    method: 'post',
    data
  })
}

export function delManager(data) {
  return request({
    url: `/api/adminInfo/del`,
    method: 'post',
    params: data
  })
}

/*
* 导入登录用户 /api/uploadLoginUser/excel
* */
export function uploadAdminExcel(data) {
  return request({
    url: `/api/uploadLoginUser/excel`,
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data
  })
}
